package online.hxstar.learn.chapter4;

import lombok.extern.slf4j.Slf4j;
import online.hxstar.learn.chapter2.EchoServer;

import java.io.IOException;
import java.util.Scanner;

/**
 * @author xinghu
 * @version 1.0
 * @date 2019/11/7 6:45 下午
 */
@Slf4j
public class PlainNioServer {
	public static void main(String[] args) throws InterruptedException, IOException {
		Scanner scanner = new Scanner(System.in);
		int num = scanner.nextInt();
		if (num != 0) {
			log.error("Usage: " + EchoServer.class.getSimpleName() + " <port>");
		} else {
			log.error("Usage: " + num + " <port>");
		}
		new PlainNioServer().start(num);
	}

	private void start(int num) {

	}
}
